package com.lnking.lnkingplace.controller;

import com.lnking.common.http.ReturnResult;
import com.lnking.lnkingplace.model.request.isolation.placeReserve.PlaceReserveSearchRequest;
import com.lnking.lnkingplace.service.IIsolationPlaceReserveService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/isolation-place-reserve")
@Api(tags = "储备场所")
public class IsolationPlaceReserveController {

    @Resource
    IIsolationPlaceReserveService isolationPlaceReserveService;

    @ApiOperation("查询列表")
    @GetMapping("list")
    public ReturnResult getList(PlaceReserveSearchRequest params) {
        return ReturnResult.success(isolationPlaceReserveService.pageList(params));
    }
}
